package com.ruoyi.eat.domain;

import java.math.BigDecimal;
import java.util.List;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单对象 eat_order
 *
 */
public class Order extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    private String id;

    /**
     * 用户id
     */
    @Excel(name = "用户id")
    private Long userId;

    /**
     * 店铺
     */
    @Excel(name = "店铺")
    private Long shopId;
    /**
     * 用户地址
     */
    @Excel(name = "用户地址")
    private Long userAddressId;
    /**
     * 是否支付
     */
    @Excel(name = "是否支付")
    private String isPay;

    /**
     * 订单状态
     */
    @Excel(name = "订单状态")
    private String status;

    /**
     * 名称
     */
    @Excel(name = "名称")
    private String orderName;

    /**
     * 销售金额
     */
    @Excel(name = "销售金额")
    private BigDecimal salesPrice;

    /**
     * 付款时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "付款时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date paymentTime;

    /**
     * 是否删除
     */
    @Excel(name = "是否删除")
    private Integer isDel;

    /**
     * 客户名称
     */
    @Excel(name = "客户名称")
    private String userName;
    /**
     * 收货人名字
     */
    @Excel(name = "收货人名字")
    private String userAddressName;

    /**
     * 邮编
     */
    @Excel(name = "邮编")
    private String postalCode;

    /**
     * 省名
     */
    @Excel(name = "省名")
    private String provinceName;

    /**
     * 市名
     */
    @Excel(name = "市名")
    private String cityName;

    /**
     * 区名
     */
    @Excel(name = "区名")
    private String countyName;

    /**
     * 详情地址
     */
    @Excel(name = "详情地址")
    private String detailInfo;

    /**
     * 电话号码
     */
    @Excel(name = "电话号码")
    private String telNum;

    /**
     * 清单明细信息
     */
    private List<OrderItem> carOrderItemList;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setIsPay(String isPay) {
        this.isPay = isPay;
    }

    public String getIsPay() {
        return isPay;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatus() {
        return status;
    }

    public void setOrderName(String orderName) {
        this.orderName = orderName;
    }

    public String getOrderName() {
        return orderName;
    }

    public void setSalesPrice(BigDecimal salesPrice) {
        this.salesPrice = salesPrice;
    }

    public BigDecimal getSalesPrice() {
        return salesPrice;
    }

    public void setPaymentTime(Date paymentTime) {
        this.paymentTime = paymentTime;
    }

    public Date getPaymentTime() {
        return paymentTime;
    }

    public void setIsDel(Integer isDel) {
        this.isDel = isDel;
    }

    public Integer getIsDel() {
        return isDel;
    }

    public List<OrderItem> getCarOrderItemList() {
        return carOrderItemList;
    }

    public void setCarOrderItemList(List<OrderItem> carOrderItemList) {
        this.carOrderItemList = carOrderItemList;
    }

    public Long getUserAddressId() {
        return userAddressId;
    }

    public void setUserAddressId(Long userAddressId) {
        this.userAddressId = userAddressId;
    }

    public String getUserAddressName() {
        return userAddressName;
    }

    public void setUserAddressName(String userAddressName) {
        this.userAddressName = userAddressName;
    }

    public String getPostalCode() {
        return postalCode;
    }

    public void setPostalCode(String postalCode) {
        this.postalCode = postalCode;
    }

    public String getProvinceName() {
        return provinceName;
    }

    public void setProvinceName(String provinceName) {
        this.provinceName = provinceName;
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public String getCountyName() {
        return countyName;
    }

    public void setCountyName(String countyName) {
        this.countyName = countyName;
    }

    public String getDetailInfo() {
        return detailInfo;
    }

    public void setDetailInfo(String detailInfo) {
        this.detailInfo = detailInfo;
    }

    public String getTelNum() {
        return telNum;
    }

    public void setTelNum(String telNum) {
        this.telNum = telNum;
    }

    public Long getShopId() {
        return shopId;
    }

    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }
}
